package org.jeecg.api.dto.req.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author zhongchao
 * @tile WorkResumeDto
 * @date 2020/8/23
 * @since v1.0.0
 */
@ApiModel("工作经历对象")
@Data
public class WorkResumeDto {

    @ApiModelProperty("主键-返回参数可能使用")
    private String id;

    @ApiModelProperty("公司名称")
    @NotNull
    @Max(32)
    private String companyName;

    @ApiModelProperty("月薪")
    @NotNull
    private Double monthPay;

    @ApiModelProperty("入职日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull
    private Date entryDate;

    @ApiModelProperty("离职日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull
    private Date leaveDate;
}
